using System;
using System.Collections.Generic;
using System.ByteBuffer;
using tools;

namespace Zjh
{
    /// <summary>
    /// generate by msg tool
    /// 玩家准备
    /// </summary>
	public class ResReadyMsg : ResMessage
	{
		//准备的玩家
		public long playerId;

        public ResReadyMsg() { }

        public ResReadyMsg(long playerId)
        {
            this.playerId = playerId;
        }

        
		public void write(object obj)
		{
            ByteBuffer b = obj as ByteBuffer;
			b.PushLong(playerId);
			
		}

	    public void read(object obj)
		{
            MyConverter b = obj as MyConverter;
			playerId = b.toInt64();
			
		}

		public int Id
		{
            get { return 519215; }
		}

        public String Desc
        {
            get { return "玩家准备"; }
        }
	}
}